START_EDGE=RISING_EDGE, STOP_EDGE=RISING_EDGE, RELOAD_EDGE=RISING_EDGE, COUNT_EDGE=RISING_EDGE, CAPTURE_EDGE=RISING_EDGE
Counter trigger control register 1
CAPTURE_EDGE | A capture event will copy the counter value into the CC register. 0 (RISING_EDGE): Rising edge. Any rising edge generates an event. 1 (FALLING_EDGE): Falling edge. Any falling edge generates an event. 2 (BOTH_EDGES): Rising AND falling edge. Any odd amount of edges generates an event. 3 (NO_EDGE_DET): No edge detection, use trigger as is. |
COUNT_EDGE | A counter event will increase or decrease the counter by ‘1’. 0 (RISING_EDGE): Rising edge. Any rising edge generates an event. 1 (FALLING_EDGE): Falling edge. Any falling edge generates an event. 2 (BOTH_EDGES): Rising AND falling edge. Any odd amount of edges generates an event. 3 (NO_EDGE_DET): No edge detection, use trigger as is. |
RELOAD_EDGE | A reload event will initialize the counter. When counting up, the counter is initialized to ‘0’. When counting down, the counter is initialized with PERIOD. 0 (RISING_EDGE): Rising edge. Any rising edge generates an event. 1 (FALLING_EDGE): Falling edge. Any falling edge generates an event. 2 (BOTH_EDGES): Rising AND falling edge. Any odd amount of edges generates an event. 3 (NO_EDGE_DET): No edge detection, use trigger as is. |
STOP_EDGE | A stop event, will stop the counter; i.e. it will no longer be running. Stopping will NOT disable the counter. 0 (RISING_EDGE): Rising edge. Any rising edge generates an event. 1 (FALLING_EDGE): Falling edge. Any falling edge generates an event. 2 (BOTH_EDGES): Rising AND falling edge. Any odd amount of edges generates an event. 3 (NO_EDGE_DET): No edge detection, use trigger as is. |
START_EDGE | A start event will start the counter; i.e. the counter will become running. Starting does NOT enable the counter. A start event will not initialize the counter whereas the reload event does. 0 (RISING_EDGE): Rising edge. Any rising edge generates an event. 1 (FALLING_EDGE): Falling edge. Any falling edge generates an event. 2 (BOTH_EDGES): Rising AND falling edge. Any odd amount of edges generates an event. 3 (NO_EDGE_DET): No edge detection, use trigger as is. |